package edu.suda.LoopCodePlus.mapper;

import edu.suda.LoopCodePlus.entity.Notification;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface NotificationMapper {
    /** 插入新通知 */
    void insertNotification(Notification notification);
    /** 根据接收者id删除通知 */
    void delete_NotificationById(Integer noticeId);
    /** 根据通知id查询通知 */
    Notification select_NotificationById(Integer noticeId);
    /** 根据接收者id查询通知 */
    List<Notification> select_NotificationByReceiveId(Integer receiveId);
}
